2020-2021 Sunseeker Telemetry and Lighting System
adc10_a_ex7_repeatSingleDMA.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void DMA0_ISR (void)
 

Function Documentation

◆ DMA0_ISR()

void DMA0_ISR ( void  )

Definition at line 188 of file adc10_a_ex7_repeatSingleDMA.c.

References __bic_SR_register_on_exit().

◆ main()

void main ( void  )

ADC10_A - Sample A1 Input, DMA 64 Samples, Repeat Single

MSP430F550x Demo Sample A1 64 times with AVcc ref. Software writes to ADC10SC to trigger sample burst. In Mainloop MSP430 waits in LPM0 to save power until ADC10_A conversion burst complete, DMA_IFG will force exit from LPM0 in Mainloop on reti. ADC10_A internal oscillator times sample period (16x) and conversion (13x). DMA transfers conversion result in ADC10MEM0 to array ADC_Result. P1.0 set at start of conversion burst, reset on completion.

          MSP430F550x
       -----------------
   /|\|              XIN|-
    | |                 |
    --|RST          XOUT|-
      |          P6.1/A1|<- Sample Signal
      |                 |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • ADC10_A peripheral
  • DMA peripheral
  • GPIO Port peripheral
  • A1

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • DMA_VECTOR

Definition at line 69 of file adc10_a_ex7_repeatSingleDMA.c.

References __delay_cycles(), __no_operation(), i, and param.